import request from '@/util/request'

export function getUserInfo() {
    return request({
        url: '/user/getUserInfo',
        method: 'get'
    })
}

export function getUserList(currentPage, pageNum, searchContent) {
    return request({
        url: '/user/getUserList',
        method: 'get',
        params: {
            currentPage: currentPage,
            pageNum: pageNum,
            keyword: searchContent
        }
    })
}

export function addUser(fd) {
    return request({
        url: '/user/addUser',
        method: 'post',
        data: fd
    })
}

export function updateUserInfo(newUserInfo) {
    return request({
        url: '/user/updateUserInfo',
        method: 'post',
        data: newUserInfo
    })
}